package com.jlcindia;

public class AMtest {

	public static void main(String[] args) {
		Student stud=new Student(34);
		stud.show();

	}

}
class Person{
	int age;
	//Person(){}
	Person(int age){
		this.age=age;
	}
}
class Student extends Person{
	Student(int age){
	super(age);
}
	void show(){
		System.out.println("age:"+age);
		System.out.println("this.age:"+this.age);
		Student st=new Student(12);
		System.out.println("st.age:"+st.age);
		System.out.println("super.age:"+super.age);
		Person p=new Person(23);
		System.out.println("p.age:"+p.age);
		super.age=35;
		System.err.println(super.age);
	}
	
}
